#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	string s;
	cin >> s;
	cout << s.substr(6) << "-" << s.substr(0, 2) << "-" << s.substr(3, 2);
	return 0;
}
